package com.sxu.spring_ioc.controller;

import com.sxu.spring_ioc.model.UserInfo;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Resource(name = "USERInfo")
    private UserInfo user;

    public void sayHi(){
        System.out.println(user);
        System.out.println("Hi~ UserController");
    }
}

